package com.heima.hellospring.repository;

import com.heima.hellospring.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/** created by tms
 * 2024-11-24
 * 教师表的数据访问接口,(注意后面的integer表示id类型)
 */
public interface TeacherRepository extends JpaRepository<Teacher,Integer> {

    List<Teacher> findByTnameLike(String name);
}

